package com.wei.czz.common.vo.admin.roleSpace;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-10-22 17:06:23
 * className: RoleSpaceVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class RoleSpaceVo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { Update.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { Save.class, Update.class })
    private String name;

    /**
     * 备注
     */
    private String remark;

}
